import request from "./request.js"

export default {
	//建筑下设备情况卡片列表
	listBuildDevice(params) {
		return request('/device/deviceAlarmDispose/listBuildDevice', 'GET', params)
	},
	//建筑下设备情况列表
	getListDevice(params) {
		return request('/device/device/listDevice', 'GET', params)
	},
	//获取设备当前的电压对应信息
	getDeviceInfo(params) {
		return request("/device/devicePoint/getByDeviceTyeId", "GET", params)
	},
	//获取单位当前的楼层
	getDeviceFloor(params) {
		return request("/device/device/listFloorAlarm", "GET", params)
	},
	//获取楼层对应的模型图
	getBuildingPlanPopup(params) {
		return request("/device/buildingPlan/getBuildingPlanPopup", "GET", params)
	},
	//获取九大系统
	getAllSystem(params) {
		return request("/admin/tenant/getFcSystemList", "GET", params)
	},
	//获取建筑当前设备状态数量
	getBuildDevice(params) {
		return request('/device/buildOverview/getBuildFloorDeviceStateDistribution', "GET", params)
	},
	//获取单位下的建筑
	getBuildingList(params) {
		return request('/device/building/getBuildingList', "GET", params)
	},
	// 分页查询报警日志列表
	getDeviceAlarm(params) {
		return request(
			'/device/deviceAlarmDispose/listDeviceAlarmDispose',
			'GET',
			params
		)
	},
	// 分页查询设备远程操作日志
	getListDeviceLog(params) {
		return request(
			'/device/device/listSendCommandRecord',
			'GET',
			params
		)
	},
	// 分页查询隐患日志列表
	getHiddleDangerLog(params) {
		return request(
			'/daily/hiddenDangerOrder/findDeviceOrderPage',
			'GET',
			params
		)
	},
	// 设备运行日志
	getDeviceRunLogPagedList(params) {
		return request(
			"/device/device/listDevicePointData",
			"GET",
			params
		);
	},
	// 分页查询设备操作日志
	ListDeviceLog(params) {
		return request(
			'/device/deviceLog/listDeviceLog',
			'GET',
			params
		)
	},
	// 分页查询平台操作日志
	getPlatformLog(params) {
		return request(
			'/device/deviceLog/findPage',
			'GET',
			params
		)
	},
	//设备运行日志详情
	getRunLogDetail(params){
		return request(
		'/device/devicePoint/listPointDataByMessageLogId',
		'GET',
		params
		)
	},
	//获取设备的电量和卡到期时间
	getDeviceElectric(params){
		return request(
		'/device/device/getElectric',
		'GET',
		params
		)
	}


}
